package com.example.environmentset;

import com.example.environmentset.interceptor.ServletContextFeignInterceptor;
import com.example.environmentset.service.impl.PropertiesPortSetImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fangyuan.xia
 * @since 2022-08-16
 */
@Configuration(proxyBeanMethods = false)
public class EnvironmentSetAutoConfiguration {
    @Bean
    public PropertiesPortSetImpl propertiesPortSet() {
        return new PropertiesPortSetImpl();
    }

    @Bean
    public ServletContextFeignInterceptor servletContextFeignInterceptor() {
        return new ServletContextFeignInterceptor();
    }
}
